#include "MGCOptions.h"

#include <QtQml>

MGCOptions::MGCOptions(QObject *parent)
    : QObject{parent}
{
    QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership);
}

QColor MGCOptions::toolbarBackgroundLight() const
{
    return QColor(255,255,255);
}

QColor MGCOptions::toolbarBackgroundDark() const
{
    return QColor(0,0,0);
}

MGCFlyViewOptions *MGCOptions::flyViewOptions()
{
    if (!_defaultFlyViewOptions) {
        _defaultFlyViewOptions = new MGCFlyViewOptions(this);
    }
    return _defaultFlyViewOptions;
}

MGCFlyViewOptions::MGCFlyViewOptions(MGCOptions* options, QObject* parent)
    : QObject   (parent)
    , _options  (options)
{
    QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership);
}
